<select name="danhmucsp" id="danhmucsp" class="field">
<option value="0">Tất cả danh mục</option>
<?php
$id = $_GET['id'];
require_once('../libs/db_connect.php'); 
$sqlsec="select id, title from dm_sanpham_danhmuc where state=1 AND loai=$id";								
$querysec=mysql_query($sqlsec);	
while($rowsec=mysql_fetch_array($querysec))
{	
	echo "<option value='$rowsec[id]'>$rowsec[title]</option>";
}			
?>
</select>
